package com.jhh.pay.weishenma.util;

import java.util.LinkedHashMap;
import java.util.Map;

import com.jhh.pay.channel.pojo.RequestBean;

import net.sf.json.JSONObject;

public class DataTransferUtil {

	public static JSONObject transfer(RequestBean request) {
		Map<String, Object> map = getDefaultDataMap();
		map.put("shddh", request.getOrderNo());
		map.put("xm", request.getBankInfo().getPersonalName());
		map.put("kh", request.getBankInfo().getBankCard());
		map.put("khh", request.getBankInfo().getBankNo());
		map.putAll(request.getExtension());
		return JSONObject.fromObject(map);
	}
	
	public static Map<String, Object> getDefaultDataMap() {
		Map<String, Object> map = new LinkedHashMap<>();
		map.put("mid", "");
		map.put("shmyc", "");
		map.put("shddh", "");
		map.put("xm", "");
		map.put("sfzh", "");
		map.put("sjh", "");
		map.put("sflx", "");
		map.put("sfzzpdz", "");
		map.put("dzxx", "");
		map.put("hyzk", "");
		map.put("jkzk", "");
		map.put("zgxl", "");
		map.put("yx", "");
		map.put("zy", "");
		map.put("gsmc", "");
		map.put("gsdh", "");
		map.put("lxrxm1", "");
		map.put("lxrdh1", "");
		map.put("lxrgx1", "");
		map.put("lxrxm2", "");
		map.put("lxrdh2", "");
		map.put("lxrgx2", "");
		map.put("dkyt", "");
		map.put("yhklx", "");
		map.put("kh", "");
		map.put("khh", "");
		map.put("ylsjh", "");
		map.put("sqje", "");
		map.put("cpm", "");
		map.put("cpmx", "");
		map.put("qx", "");
		map.put("jjfwxyqysj", "");
		map.put("jjfwxyckdz", "");
		map.put("casqxyqysj", "");
		map.put("casqxyckdz", "");
		map.put("dkxyqysj", "");
		map.put("dkxyckdz", "");
		map.put("qyszsheng", "");
		map.put("qyszshi", "");
		map.put("ts", "");
		map.put("fkxx", "");
		map.put("on_line", "");
		map.put("timestamp", "");
		map.put("sign", "");
		map.put("zfmx", "");
		map.put("sfdf", "");
		map.put("sfdk", "");
		map.put("zfje", "");
		map.put("ktje", "");
		map.put("dgkhh", "");
		map.put("dggsmc", "");
		map.put("dgkhhbh", "");
		map.put("dgkhhkh", "");
		map.put("dgkhhsheng", "");
		map.put("dgkhhshi", "");
		map.put("dsfzfjybh", "");
		return map;
	}
	
	

}
